function extractTypeFlags(tsType) {
  const ts = /** @type {TypeScript} */ (getTypeScript())
  /** @type {string[]} */
  const result = []
  const keys = /** @type {(keyof (typeof ts.TypeFlags))[]} */ (
    Object.keys(ts.TypeFlags)
  )
  for (const k of keys) {
    if ((tsType.flags & ts.TypeFlags[k]) !== 0) {
      result.push(k)
    }
  }
  return result
}
For debug
@param {Type} tsType
@returns {string[]}