The Selection.collapse() method collapses the current selection to a single point.
Selection.collapse()
MDN Reference