Is there a way, particularly in Typescript, to seamlessly move an export statement like the one below to an existing file and automatically update all files that import it?
export const MyVar = 3;
In the case of refactoring using Right Click > Refactor, the code will be relocated to a new file, leading to a chain reaction where all imported files now reference the new location. But what if I want to skip creating a new file altogether and simply transfer the export to an already existing file?