Complete worked example
typescript
import note from "./notes.txt" with { type: "text" };
const length: number = note.length;- Reasoning
- The matching declaration is supplied in a separate global assets.d.ts fixture; runtime loading remains host-specific.