Code 41 means the O2 sensor is seeing a lean condition. Don't think the sensor is bad. Most likely when you replace the sensor the code will return. The 77 should go away if you quickly depress the throttle between the seperator code and when the first code is transmitted. Ie. after the first "1" or "11" and maybe "3" (the three means how many cylinders fire in one reveloution of the engine) I can't recall the order of these first three codes. Code 23 is the TPS is out of range. Also if you are doing the "goose test" at the right time the TPS could be bad.
Check the wiring and the referance voltage to the TPS. Also take a ohm meeter and test the resistance vs throttle position. If the resitance is is not smooth increasing and decreasing while actuating the throttle then replace the sensor.
Then unplug the Knock sensor take the truck for a drive and see if the engine starts to ping real bad. If the engine starts pinging real bad unplugged, and then if you reconnect the sensor and the pinging stops, then the knock sensor is OK. Blow the code off. You might get the code to clear by taking a very small hammer and lightly tapping the exhaust manifold while performing the KOER test. The code might go away.
The 41 code is an engine too lean code or O2 slow switching. Not the O2 sensor is bad code! (That is code 43) If the engine vacuum system is tight and I mean everything, manifold, carb, spacers, EGR valve, vacuum lines, vacuum reservoir! solinoid valves, vacuum motors, and all of the other BS that can cause a vacuum leak. Then I would look at the Feedback solinoid on the back of the carb as well as the condition of the carb. The feedback solinoid is very overlooked part for a slight miss at idle. Over the years the rubber parts in the valve go bad and the valve wont seal, allowing air to be be bypassed into the emultion tubes in the carb. This will lean out the engine allowing the HC's to increase at idle. IN addition it might be time to clean out and re-tune the carb by propane gain method. BTW it would be a good idea to change the O2 sensor after you have checked all of these things they do wear out and get lazy, the last one I bought from NAPA was 13 dollars.
Dont be frustrated, these are all very, very common codes for a 2.8 FBC EECIV engine. The most common parts to fail on this vehicle are the TPS, TFI module, Vacuum leaks!!!!!!!!, Feedback Solinoid,and O2 sensor. everything else is pretty reliable.
Hope this helps