import fs, { promises as fsp } from 'node:fs'; export const rmAsync = fsp.rm; export const existsAsync = (path: string): Promise => fsp .access(path, fs.constants.F_OK) .then(() => true) .catch(() => false);