Watch the Boba Funk: 6 online guitar lesson by Ben Lacy from Two-Hand Groove Guitar
Ghost notes are one of my favorite ways to subtly bring extreme detail to the bassline. This one is perfect for it because it has those nice spaces in it.
Now it gets busier, so we'll need to use both thumb and index alternating for the bassline because we're going to give it a constant pulse. These ghost notes are played muted on whatever string you're addressing at the time, in all of the spaces between the bass notes.
It might help to loop the part where I play this ultra-slow and watch one hand at a time to see how the ghost notes fit into the bass notes.