-import * as os from 'node:os'
import { getRandomValues } from 'node:crypto'
+import * as os from 'node:os'
+
import type { KillBehavior } from './worker/worker-options.js'
/**
* @internal
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const once = <T, A extends any[], R>(
+export const once = <A extends any[], R, T>(
fn: (...args: A) => R,
context: T
): ((...args: A) => R) => {