You could use setTimeout() to call a function later. Waiting 10 minutes will be problematic though, as Glitch projects sleep after 5 minutes of inactivity, but it sounds like it might be alright to reduce it in the use-case.
e.g.
function waitFunction() {
// all the stuff you want to happen after that pause
console.log('this should 3 seconds later');
}
// called after 3 seconds
setTimeout(waitFunction, 3000);