import { Effect } from "effect" export const tryAsync = (label: string, run: () => Promise): Effect.Effect => Effect.tryPromise({ try: run, catch: (cause) => new Error(`${label}: ${cause}`), })