isWorkerRuntimeReturns true if this code is currently running in a worker. const isWorkerRuntime: () => boolean;