Mclose
Bun

method

BroadcastChannel.close

close(): void;

Closes the BroadcastChannel object, opening it up to garbage collection.

MDN Reference