/** Virtual timer IDs are `IDisposable`s. Recover one from an opaque id. */
if (id === null || typeof id !== 'object') { return undefined; }
const maybe = id as Partial<IDisposable>;
return typeof maybe.dispose === 'function' ? id as IDisposable : undefined;
}
export interface CreateVirtualTimeApiOptions {