Page URL: https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-
Issue:
The page states:
For declaration files generated during compilation, the compiler will automatically add /// <reference types="..." /> for you; A /// <reference types="..." /> in a generated declaration file is added if and only if the resulting file uses any declarations from the referenced package.
This is no longer correct as of TypeScript 5.5; see https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#simplified-reference-directive-declaration-emit.
The documentation should be updated with the new behavior, including coverage of preserve="true".