Drywall and tile to top of shower
It looks like you have drywall attached to the studs above where the tub is attached.

You should remove the drywall entirely. Then put concrete board or something like densglass or kerdiboard and bring it butted to the tub.

Then your wall sheet and the tub ledge should be nearly flush. Finally, install the tile covering both the wallboard and the tub lip.