function once(fn) {
	var ran = false;

	return function (...args) {
		if (ran) return;
		ran = true;

		// @ts-ignore
		return fn?.apply(this, args);
	};
}
Substitute for the `once` event modifier
@deprecated
@param {(event: Event, ...args: Array<unknown>) => void} fn
@returns {(event: Event, ...args: unknown[]) => void}