function getSignatureReturns({yields, returns}, cssClass) {
  let returnTypes = [];

  if (yields || returns) {
    (yields || returns).forEach((r) => {
      if (r && r.type && r.type.names) {
        if (!returnTypes.length) {
          returnTypes = r.type.names;
        }
      }
    });
  }

  if (returnTypes && returnTypes.length) {
    returnTypes = returnTypes.map((r) => linkto(r, '', cssClass));
  }

  return returnTypes;
}
Copied from https://github.com/jsdoc/jsdoc/blob/main/packages/jsdoc/lib/jsdoc/util/templateHelper.js
Modified to call our own `linkto` to shorten names.
@param {Object} doclet The doclet.
@param {Array} [doclet.yields] The returns.
@param {Array} [doclet.returns] The returns.
@param {string} cssClass The css class.
@return {Array} The returns.