window-stop.ts

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