With this @param comment, Apps Script understands the type of sheet, and now when you type sheet. inside the function, autocompletion kicks in just like magic. No more second-guessing method names or switching tabs to check the docs.
You can use this trick for all kinds of Google Apps Script types, Docs, Forms, Calendar, Drive….