As part of #62199, we are deprecating and removing suppport for the AMD module system. That means that the amd-module will cease to have a function.
There is possibly no need to do anything special here if it simply falls out from the behavior of deprecating --module amd in TypeScript 6.0. However, neither will work in TypeScript 7.0.
See more at #54500.