2001 thing reads like scanner issue not computer issue.
You can get a bluetooth OBD2 reader for $35 that you use with a smartphone to watch live data while driving or read codes.
Works with any 1995 or newer North American car or truck, so worthwhile investment.
Google: bluetooth OBD2 reader
OK, back to the cold start issue
Could be ECT(engine coolant temp) sensor is "telling" computer the engine is already partially warmed up, so after startup computer leaves Choke mode and runs engine too Lean so it misses and stalls.
ECT sensor is about $8, so I would just change it on spec
There are TWO temp sensing devices on all fuel injected engines
ECT SENDER, 1 wire, used for dash board temp gauge, NOT computer
ECT SENSOR, 2 wires, used only by computer.
Make sure you get the SENSOR, not sender, parts guys often think they are the same thing.
Both of these are usually located near the thermostat housing.
Another thing it could be, since you don't mention how it runs warmed up, is that you are loosing fuel pressure when engine sits for a few hours.
When you turn on the key the computer only runs the fuel pump for 2 seconds, that will add 10-15psi of pressure to the fuel system.
'98 Ranger should have 65psi of pressure at the fuel rail/injectors, and it will hold that pressure for a few months when engine is off.
If pressure is leaking out and it is only 20psi after 6 hours then turning on the key once only gets you to 35psi and engine would struggle to stay running until pressure built up.
So try turning on the key, count to 3, and turn key off
Repeat this 3 times, 45psi minimum pressure, then try to start engine.
If it starts better then you are leaking pressure, on the Returnless system this would usually be the check valve inside the fuel pump.
Check valve is only used when pump is off so this wouldn't effect driving, only startup when enough pressure had leaked out.
If you smell gas then obviously a fuel line is leaking
