/** Sleep with a Promise */ export function sleep(time: number): Promise { return new Promise((resolve) => { setTimeout(resolve, time); }); }