export function isAbortError(error: unknown): boolean {
  if (!(error instanceof Error)) return false;
  if (error.name === "AbortError") return true;
  const cause = error.cause;
  return cause !== error && isAbortError(cause);
}
