2621. Sleep ¶ TypeScript 1 2 3 4 5async function sleep(millis: number): Promise<void> { return new Promise((resolve) => { setTimeout(resolve, millis); }); }