Transistors based on two-dimensional semiconductors suffer from electrical instabilities because charges readily get trapped in the gate oxides. As charge trapping is sensitive to the energetic alignment of the channel Fermi level to the defect bands in the oxide, the number of electrically active traps can be reduced by tuning the channel Fermi level.