How can I prevent it from automatically modifying types.d.ts?

When Vaadin Hilla starts, it automatically generates a .bak file and modifies the types.d.ts file by adding:

declare module '*.css?inline' {
  import type { CSSResultGroup } from 'lit';
  const content: CSSResultGroup;
  export default content;
}

declare module 'csstype' {
  interface Properties {
    [index: `--${string}`]: any;
  }
}

How can I prevent it from automatically modifying the files?