import { access } from "fs/promises"; export const exists = async (path: string): Promise => { try { await access(path); return path; } catch (error) { return false; } };