No secret to it.
You have to remove the seats and carpet and cover the floor, wall to wall and firewall to the back of the cab, with expensive sound deadener, such as Dynamat. Then cover the inside of the doors. Then cover the firewall. I don't think covering under the headliner will do much good, but it will help some. Cover the back wall of the cab from floor to the bottom of the backlight, being sure to not block the big air vent in the back of the cab. After everything is covered floor to windows, then reinstall the carpet and seats.
Not cheap. Plan on several hundred bucks for the mats, plus at least one long day for the install. Most suppliers hav custom-fitted pieces for inside the doors. When you get done you'll know one reason why a luxury car costs more than an economy car.
There is more than one brand of sound deadener mat available, but here is the best known:
The Official Dynamat Website
My Sierra Blanca in the sig pic was a great pickup for 11.5 years. I sold it a coupla years ago. I drove a hand-me-down 2003 F-150 SuperCrew 4.6L 2V for a while, but it was unacceptable for towing more than a rowboat. Replacement is a 2012 F-150 EcoBoost SuperCrew Lariat that tows my 5,000-pound TT like a dream.