Ported AnnotationGroupsTab to TypeScript