I haven't done this (no need - I have fretless basses), but I would go about it by taking off the neck (if possible), removing the nut, pulling the frets, cleaning the slots with a saw of appropriate kerf and drilling out the position markers, then filling with a black epoxy like this...