Gtk.TextIter.prototype.set_offset

function set_offset(char_offset:Number):void {
    // Gjs wrapper for gtk_text_iter_set_offset()
}

Sets iter to point to char_offset. char_offset counts from the start of the entire text buffer, starting with 0.

char_offset

a character number