ждать

function wait(timeout){
    return new Promise(resolve=>setTimeout(resolve, timeout));
}
await wait(<time>).then(()=>{});
The Arborist