freezing-carpenter-9818
04/20/2024, 11:47 AMasync function waitNSeconds(n) {
return new Promise((resolve) => {
setTimeout(() => {
resolve()
}, n)
})
}
// Usage
console.log('Start waiting...')
await waitNSeconds(7000) // 5000 = 5s adjust waiting time here
Adjust the time as you see fit