The one tag that wires autocomplete
The `@customfunction` JSDoc tag is the only non-optional piece. Without it, your function runs fine when called from the formula bar, but it never surfaces in the autocomplete dropdown and Sheets won't generate the tooltip showing parameter names. Add it anywhere inside the doc block above your function.
The rest of the JSDoc matters too, but for different reasons. The `@param` lines populate the inline help card that appears when a user types the opening parenthesis. The `@return` line tells them what comes back. Omit those and the function still works — it just looks raw.
Function names are conventionally ALL_CAPS to match built-in formula conventions (SUM, VLOOKUP, and so on), but that's style, not a requirement. Sheets matches the name case-insensitively in the formula bar.