Mclose
Bun

method

MessagePort.close

close(): void;

Disconnects the port, so that it is no longer active.

MDN Reference