To get started you'll have to add the MultiBlockSelectionPlugin and the listen to any changes after the editor is initialized. Internal implementation might not work on some editor versions.
const blockSelection = new MultiBlockSelectionPlugin({ editor })
editor.isReady.then(() => {
blockSelection.listen()
})
You can find tool examples in the examples folder