You don't need this.
Quick and dirty VS extension to create file with timestamp in name.
npm install
vsce package
This will create a .vsix file in your extension’s directory, which can be installed in Visual Studio Code via the Extensions: Install from VSIX... command in the Command Palette.
Command "Create Timestamped File"
File will be created alongside currently open file.