CodeUnitIndex: number & { __brand: "CodeUnit" }

Branded UTF-16 code-unit index (the JS String addressing model).

JS strings are UTF-16 code-unit sequences, so all current string bridges index by code unit. The brand keeps the public API stable when a future wasm:string-view bridge introduces a code-point addressing path: the index newtype stays correct on the consumer side because the type is structurally distinct from a plain number.