https://www.smarty.net/docsv2/en/language.basic.syntax.tpl#language.syntax.comments Looks like this is not possible using widgets.
Not sure what type of comments you would like to add. Perhaps you could do this on the Widget's code page.