function sleep(ms = 0) {
  return new Promise((resolve) => setTimeout(resolve, ms))
}
Sleep/wait for a set amount of time

@param {number} ms - Amount of time to sleep
@returns {Promise} Resolves after timeout