Added missing @return and @type JSDoc annotations.