export const handleExitError = (err, type = "Unhandled error") => { const isExit = err?.name === "ExitPromptError" || err?.code === "ERR_CANCELED" || err?.message?.includes("SIGINT"); if (isExit) { console.log("\nšŸ‘‹ Exiting. Cya!\n"); process.exit(0); } console.error(`āŒ ${type}:`, err); process.exit(1); };