import { createDeferredPromiseWithTimer } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/util/DeferredPromise.js";
Creates an returns a promise along with the resolve/reject functions.
If the promise has not been resolved/rejected withing the timeout
period,
the promise gets rejected with a timeout error.