JavaCript -Code, der auf Millisekunden verzögert wird

function wait(timeout){
    return new Promise(resolve=>setTimeout(resolve, timeout));
}

// in this line of code, change "<time>" with int of Milliseconds
await wait(<time>).then(()=>{});
The Arborist