IntelliJ IDEA creates stubs of JSDoc comments on typing the opening tag /** and pressing Enter. If this feature is applied to a method or a function, @param tags are created. In any other places IntelliJ IDEA adds an empty documentation stub.
IntelliJ IDEA checks syntax in the comments and treats it according to the Code Inspections settings.