The charge of an isotope is defined by how many more protons there are than electrons.
Or the other way around.
For example if there are 4 protons and 2 electrons, the ion charge is +2 because there are more protons.
If there are 4 electrons and 2 protons, the ion charge is -2 because there are more electrons.