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