export async function sleep(time: number) { await new Promise((resolve) => { setTimeout(() => resolve(null), time); }); }