export async function sleep(amount = 500) { await new Promise(resolve => { setTimeout(() => resolve(), amount); }); console.log('SLEEP FINISHED'); }