• Use in conjunction with await to pause an async script

    Parameters

    • ms: number

      Time to pause for in milliseconds

    Returns Promise<void>

    • Resolves promise when it's time to resume
    await sleep(1000) // Pause for 1 second