I have the following javascript code
let run = true
while (run){
await page.waitFor(1000);
timer++;
console.log('timer',timer);
//here it is necessary to somehow catch user input and end the cycle
if(input == true){
run = false;
}
}
Ctrl + C completes the program fully, and I would only like to exit this cycle