That's why years are important, lol
1995 and up have the door open switch inside the door, not in door jamb
And its on the Latch unit at back side of the door but inside
There will be a Door Ajar light on the dash that will come on when either door is opened
If that's not working then previous owner may have unplugged it vs fixing it
Picture of the latch, removed, Door Switch is the white part he's holding:
https://i.ytimg.com/vi/HyTFsi809Hs/maxresdefault.jpg
Its a twist lock to hold it in place so door latch must be loosened, not removed to twist out the old switch and install the new one
2 wire connector
In 1995 and up this switch is connected to the GEM(body computer) not the dome light
The switch is a ground path to GEM, the switch is OPEN(ungrounded) when door is closed, and Grounded when door is open
Because of the location of the switch at the bottom of the latch dirt and debris will run down when it rains and go into the switch, making it stick CLOSED or shorting it to Ground
This will cause the GEM to turn on the Door Ajar light AND the dome light all the time, key on or off doesn't matter
If you take the door panel off and unplug the switch then NO ground, so no Door Ajar light and no dome light, the EASY FIX, lol
There is also a Dome Light Relay that the GEM activates when door switch is grounded, but these rarely fail, so start with the door switch
And the Dimmer wheel also passes its 12v thru the Dome Relay so its likely not the problem if that works to activate the dome light