const bunGlobal = ((globalThis as { Bun?: Record }).Bun ??= {}); if (typeof bunGlobal.sleep !== "function") { bunGlobal.sleep = async (_ms: number) => {}; }