import fs from 'node:fs/promises'; export const fileExists = async (path: string): Promise => { try { await fs.stat(path); return true; } catch { return false; } };