Using AA's code that he sent you yesterday I see no reason why you couldn't adjust the waiting time to 14,400 seconds for 4 hours, for example
async function waitNSeconds(n) {
return new Promise((resolve) => {
setTimeout(() => {
resolve()
}, n)
})
}
// Usage
console.log('Start waiting...')
await waitNSeconds(5000) // 5000 = 5s adjust waiting time here