window-stop.txt

setTimeout(() => {
    window.stop();
    console.log("window stopped");
}, 4 * 1000);