When I created a new JS file in IDEA today, I thought that the author and time could be displayed like WebStorm, so I studied the template for modifying the file creation in IDEA.
Click settings to find File and Code Templates
Modify the file template:
${DATE} is the current time of the system, which is some variables, and the variables can be seen in the description below.