Split from T138401: Replace jsduck with JSDoc3 across all Wikimedia code bases.
Note we already tried to do this via https://gerrit.wikimedia.org/r/887293 but had to revert it via https://gerrit.wikimedia.org/r/887852. We probably just have to re-apply the change and find other ways to fix the broken documentation. Also note the relevant discussion in T138401#8821683.