A lens or eye mask for treating an eye of a patient includes a flexible printed circuit board (PCB) that is configured to fit over at least a portion of a surface of the eye and a plurality of electrode pairs that are arranged on the flexible PCB. An electrical source is configured to provide electrical energy to each electrode pair to create a near electromagnetic field within the eye and thereby therapeutically treat target tissue within the eye. A spacing between electrodes of each electrode pair is controlled to achieve a predetermined penetration depth of the near electromagnetic field within the eye.