/** * Asynchronously wait for a specified number of milliseconds. * * @param {number} ms - Number of milliseconds to wait. * * @returns {Promise} The promise to await on. */ export async function wait(ms): Promise { return new Promise((resolve) => { setTimeout(resolve, ms); }); }