How do I remove an apple mapkit-js Annotation Callout?

I have not been able to find any documentation on how to close an Annotation call out when clicking on a pin(Annotation) on the map. When I click on an Annotation my custom callout appears. In that callout I added a close button. I know you can click on the map to hide the annotation but I also require a close button in this case.

I created a hacky way to close the popup however, I would like to know if there is a better method?

jQuery('.landmark').fadeOut();

I see there is a deselectAnnotation(_:animated:) option however that is only available for the MapKit and not Mapkit-js it appears, unless I’m overlooking something.