This took me way too long to figure out…
If your #js function takes a parameter object and uses spread syntax to collect arbitrary additional properties (rest) and you want to document it using #JSDoc, the syntax is:
[p:string]:any
e.g.,
```js
/**
@param {{
state: import('./SetupState.script.js').default,
[p:string]:any
}} parameterObject
@returns {string|string[]} html
*/
export default ({state, ...props}) => html`…`
```
Solution by Alexander Lonberg https://stackoverflow.com/a/68567492