set cursor position in v6

I wonder what is the command to set cursor position in v6.
Thanks.

editor.dispatch({selection: {anchor: N, head: N}})