export function shouldUseBuiltBridgeRuntimeBinary(input: {
  builtBinaryMtimeMs: number | null;
  latestSourceMtimeMs: number | null;
}): boolean {
  if (typeof input.builtBinaryMtimeMs !== "number" || !Number.isFinite(input.builtBinaryMtimeMs)) {
    return false;
  }
  if (typeof input.latestSourceMtimeMs !== "number" || !Number.isFinite(input.latestSourceMtimeMs)) {
    return true;
  }
  return input.builtBinaryMtimeMs >= input.latestSourceMtimeMs;
}
