MremoveEventListener
Bun

method

AbortSignal.removeEventListener

removeEventListener<K extends 'abort'>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | EventListenerOptions
): void;

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference