Hi there your code P0418 Secondary Air Injection System Relay "A" Circuit Malfunction
The seconadary air injections system prmotes the warm up of the cataltic converters during start up to start burning the exhaust gases quicker. The check engine light when you start up is P0030 Heated oxygen sensor Heater Control Circuit (Bank 1 Sensor 1).
I suggest that you take you truck to your dealer for proper emmision service
If you need any more help just ask
if you agree with my answer then please accept feedback is also welcomed THANKS