You can’t toggle off tools once you have selected a tool, this mimics how the viewer’s UI works. To mimic what the viewer does when you toggle off an annotation you set the tool to the annotation select tool, which is our default tool.
Here’s a snippet on how to do that: instance.setToolMode('AnnotationEdit');