Halden’s supplied fault-code file uses CommonJS. Keep its code intact, rename it halden-faults.cjs, and update the controller’s import path. Your own new files stay ES modules in the existing "type": "module" project.
An ES module can import CommonJS. A default import receives the complete module.exports value. Named imports work when Node can find the names in the CommonJS source; use the default import when it can’t.
The controller keeps its parser behavior and imports Halden’s existing description function:
import { describe } from "#boiler/halden-faults.cjs";
The supplied file still exports both describe and FAULTS, including F40. The digest keeps the three plants, verbose diagnostic and optional chart.