import { polyfillBroadcastChannel } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/mod.ts";
Polyfills the globalThis
with a BroadcastChannel implementation, if one is not already present.
Returns
The globalThis
that was passed in, type-cast so TypeScript can see it has "BroadcastChannel".