docs/scripts/buildApi.ts/trimComment
const trimComment = (comment: string) => {
  let startIdx = 0;
  while (comment[startIdx] === '*' || comment[startIdx] === ' ') {
    startIdx += 1;
  }

  let endIdx = comment.length - 1;
  while (comment[endIdx] === ' ') {
    endIdx -= 1;
  }

  return comment.substr(startIdx, endIdx - startIdx + 1);
};