In headings in the JSDoc WMF theme, optional parameters are indicated by a subscript opt following the parameter, while in JSDuck optional parameters are indicated with square brackets. In addition, the color contrast between the opt text and the background is not accessible, originally reported in this on wiki comment.
I suggest replacing opt with square brackets for parity with JSDuck but happy to hear other ideas.
Note that parameters will be removed from titles as part of T359220